.app-bg {
  min-height: 100vh;
  background: #7e8dfb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todo-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 32px 24px;
  width: 360px;
}

.todo-input {
  width: calc(100% - 12px);
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
  box-sizing: border-box;
}

.todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.clear-btn {
  background: #7e8dfb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
}

.filter-tabs {
  display: flex;
  gap: 16px;
}

.filter-tabs span {
  cursor: pointer;
  color: #888;
  font-weight: 500;
  padding: 2px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.filter-tabs .active {
  color: #7e8dfb;
  background: #e8edff;
  border-bottom: none;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-item input[type="checkbox"] {
  margin-right: 10px;
}

.todo-item .completed {
  text-decoration: line-through;
  color: #aaa;
}

.todo-item .actions {
  display: none;
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  z-index: 2;
  flex-direction: column;
  gap: 0;
}

.todo-item .actions.show {
  display: flex;
}

.todo-item .actions button {
  background: none;
  border: none;
  color: #333;
  padding: 8px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.todo-item .actions button:hover {
  background: #f5f5f5;
}

.todo-item .more {
  margin-left: auto;
  cursor: pointer;
  font-size: 20px;
  color: #bbb;
  padding: 0 8px;
  background: none;
  border: none;
  outline: none;
}

.edit-input {
  flex: 1;
  padding: 4px 8px;
  font-size: 16px;
  margin-right: 8px;
}

.icon {
  margin-right: 8px;
  vertical-align: middle;
}